package com.llh.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class StockBase implements Serializable {
    private Integer no;

    private String s_code;

    private String s_name;

    private Date open_day;

    private Double open_num;

    private Double cir_num;

    private Double cir_value;

    private String open_type;

    private Double total_num;

    private Double total_ratio;

    private Double bef_cir_num;

    private Double bef_ratio;

    private Double aft_cir_num;

    private Double aft_ratio;

    private Integer open_count;

    private Date annou_date;

    private static final long serialVersionUID = 1L;

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getS_code() {
        return s_code;
    }

    public void setS_code(String s_code) {
        this.s_code = s_code == null ? null : s_code.trim();
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name == null ? null : s_name.trim();
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    public Double getOpen_num() {
        return open_num;
    }

    public void setOpen_num(Double open_num) {
        this.open_num = open_num;
    }

    public Double getCir_num() {
        return cir_num;
    }

    public void setCir_num(Double cir_num) {
        this.cir_num = cir_num;
    }

    public Double getCir_value() {
        return cir_value;
    }

    public void setCir_value(Double cir_value) {
        this.cir_value = cir_value;
    }

    public String getOpen_type() {
        return open_type;
    }

    public void setOpen_type(String open_type) {
        this.open_type = open_type == null ? null : open_type.trim();
    }

    public Double getTotal_num() {
        return total_num;
    }

    public void setTotal_num(Double total_num) {
        this.total_num = total_num;
    }

    public Double getTotal_ratio() {
        return total_ratio;
    }

    public void setTotal_ratio(Double total_ratio) {
        this.total_ratio = total_ratio;
    }

    public Double getBef_cir_num() {
        return bef_cir_num;
    }

    public void setBef_cir_num(Double bef_cir_num) {
        this.bef_cir_num = bef_cir_num;
    }

    public Double getBef_ratio() {
        return bef_ratio;
    }

    public void setBef_ratio(Double bef_ratio) {
        this.bef_ratio = bef_ratio;
    }

    public Double getAft_cir_num() {
        return aft_cir_num;
    }

    public void setAft_cir_num(Double aft_cir_num) {
        this.aft_cir_num = aft_cir_num;
    }

    public Double getAft_ratio() {
        return aft_ratio;
    }

    public void setAft_ratio(Double aft_ratio) {
        this.aft_ratio = aft_ratio;
    }

    public Integer getOpen_count() {
        return open_count;
    }

    public void setOpen_count(Integer open_count) {
        this.open_count = open_count;
    }

    public Date getAnnou_date() {
        return annou_date;
    }

    public void setAnnou_date(Date annou_date) {
        this.annou_date = annou_date;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StockBase stockBase = (StockBase) o;
        return s_code.equals(stockBase.s_code) &&
                open_day.equals(stockBase.open_day);
    }

    @Override
    public int hashCode() {
        return Objects.hash(s_code, open_day);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", no=").append(no);
        sb.append(", s_code=").append(s_code);
        sb.append(", s_name=").append(s_name);
        sb.append(", open_day=").append(open_day);
        sb.append(", open_num=").append(open_num);
        sb.append(", cir_num=").append(cir_num);
        sb.append(", cir_value=").append(cir_value);
        sb.append(", open_type=").append(open_type);
        sb.append(", total_num=").append(total_num);
        sb.append(", total_ratio=").append(total_ratio);
        sb.append(", bef_cir_num=").append(bef_cir_num);
        sb.append(", bef_ratio=").append(bef_ratio);
        sb.append(", aft_cir_num=").append(aft_cir_num);
        sb.append(", aft_ratio=").append(aft_ratio);
        sb.append(", open_count=").append(open_count);
        sb.append(", annou_date=").append(annou_date);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}